package com.wpp;

public class Person {
    private String name;
    int age;

    public Person() {
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public void show(String name1) {
        System.out.println("公共的" + ":" + name1);
    }

    private Object showtime() {
        System.out.println("私密的");
        return 1;
    }

    private static void showStatic() {

        System.out.println("This is static Method");
    }
}
